package com.thoughtmechanix.licenses;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 功能描述
 * 项目入口 spring boot启动类
 * @author zgl
 * @version 1.0
 * @date 2019-07-23 18:41
 */


@SpringBootApplication
@RefreshScope
@EnableDiscoveryClient
public class Application {

    public static void main(String [] args){
        SpringApplication.run(Application.class,args);
    }

    @LoadBalanced
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate(); }


}
